package SV_LDAP_ANON;

import javax.naming.Context;
import java.util.Hashtable;

public class Fixed_01 {
void test() {
    // Set up the environment for creating the initial context
    Hashtable<String, Object> env = new Hashtable<String, Object>();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=JNDITutorial");
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
}
}
